package com.binance.notification.api.push.notification;

import com.binance.master.validator.constraints.CustomCheck;
import com.binance.notification.verifier.PusMessageVerifier;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@ApiModel(value = "App端通知", description = "发送到App端的通知")
@Setter
@Getter
@CustomCheck(verifier = PusMessageVerifier.class)
public class AppPayload extends AbstractNotification {

    private static final long serialVersionUID = 1459992187358447203L;

    @ApiModelProperty(value = "移动端收到通知的动作：0：打开App；1：打开App内页面；2：打开网址链接", allowableValues = "range[0, 2]")
    private int action;
    @ApiModelProperty(value = "App内部页面地址")
    private String intent;
    @ApiModelProperty(value = "打开地址，前缀可能是http://、https://、inside: 三者之一。")
    private String web;
    @ApiModelProperty(value = "按钮名称")
    private String btn;
}
